package io.github.talelin.latticy.service.oms.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.talelin.latticy.mapper.oms.TempBillMapper;
import io.github.talelin.latticy.model.oms.TempBillDO;
import io.github.talelin.latticy.service.oms.TempBillService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-07-04
 */
@Service
public class TempBillServiceImpl extends ServiceImpl<TempBillMapper, TempBillDO> implements TempBillService {


    @Override
    public void getSeq(Map<String, String> paramMap) {
        this.baseMapper.getSeq(paramMap);
    }

    @Override
    public String getSeqNo(String billType) {
        HashMap<String, String> map = new HashMap();
        map.put("billType", billType);
        map.put("billNo", "");
        this.getSeq(map);
        return map.get("billNo");
    }
}
